package com.zzj.model.dto.comment;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ReplyCreateDto {
    @NotNull(message = "请输入主评论ID")
    private int commentId;
    @NotNull(message = "请输入评论者ID")
    private int fromId;
    @NotEmpty(message = "请输入评论者用户名")
    private String fromUsername;
    @NotEmpty(message="请输入评论者头像")
    private String fromAvatar;
    @NotEmpty(message = "请输入评论内容")
    private String fromContent;

    @NotNull(message = "请输入被评论者ID")
    private int toId;
    @NotEmpty(message = "请输入被评论者用户名")
    private String toUsername;
    @NotEmpty(message="请输入被评论者头像")
    private String toAvatar;
    @NotEmpty(message = "请输入被评论内容")
    private String toContent;



}
